--- configure.orig	Thu Oct 30 15:13:56 2014
+++ configure	Sun Dec 28 17:25:25 2014
@@ -3381,7 +3381,7 @@
          osis64bit=yes
       fi
       ;;
-   *-freebsd*)
+   *-freebsd* | *-openbsd* | *-bitrig*)
       mach="`uname -m`"
       if test "$mach" = "amd64"; then
          bitflag="64"
